package com.dzx.design.creational.builder;

/**
 * @author dzx
 * @ClassName:
 * @Description: 建造者模式
 * @date 2019年07月13日 16:47:56
 */
public class CourseActualBuilder extends CourseBuilder {

    private Course course = new Course();

    public void buildCourseName(String courseName) {
        course.setCourseName(courseName);
    }

    public void buildCoursePPT(String coursePPT) {
        course.setCoursePPT(coursePPT);
    }

    public void buildCourseVideo(String courseVideo) {
        course.setCourseVideo(courseVideo);
    }

    public void buildCourseArticle(String courseArticle) {
        course.setCourseArticle(courseArticle);
    }

    public void buildCourseOA(String courseOA) {
        course.setCourseOA(courseOA);
    }

    public Course makeCourse() {
        return course;
    }
}
